package com.fragment.demo;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;
import baidumapsdk.demo.R;

public class TestActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		test55();
	}
	public void test55() {
//		LayoutInflater inflater = LayoutInflater.from(this);
//	    View localView = inflater.inflate(R.layout.show1, null);
//	    addMainView(localView);
//	    Button btn=(Button)localView.findViewById(R.id.button1);
		addMainFragment(new View1());
		
//	    btn.setOnClickListener(new OnClickListener() {
//			@Override
//			public void onClick(View arg0) {
//				Toast.makeText(TestActivity.this, "ni hao", Toast.LENGTH_SHORT).show();
//				
//			}
//		});
	}
}
